Regional progressive meshes

ABSTRACT

A regional progressive mesh provides support for real-time rendering of large-scale surfaces with locally adapting surface geometric complexity according to changing view parameters. The regional progressive mesh is constructed by subdividing an initial detailed mesh one or more times into multiple sub-regions as an iterative or recursive process. Each sub-region is separately simplified, and the localized transformations recorded in separate segments in a sequence of mesh refinement transformations that form the progressive mesh representation. The resulting regionalized organization of mesh refinement transformations reduces the working set of memory pages containing progressive mesh data needed for real-time view-dependent adaptation and rendering of the mesh surface. An exact approximate error measurement of a vertex split transformation also is defined as the maximum height deviation at enumerated vertices in the open neighborhood of the transformation relative to a regular triangulation of grid points, where the enumerated vertices include the grid points internal to the faces adjacent the split vertex and the grid line crossings internal to edges adjacent the split vertex.

CROSS REFERENCE TO RELATED APPLICATION

This is a continuation of co-pending U.S. patent application Ser. No.09/115,583, filed Jul. 14, 1998, entitled, “REGIONAL PROGRESSIVEMESHES,” by inventor Hugues H. Hoppe, which application is herebyincorporated herein by reference.

COPYRIGHT AUTHORIZATION

A portion of this disclosure may contain copyrighted material. Thecopyright owner has no objection to the facsimile reproduction by anyoneof the patent document or the patent disclosure, as it appears in thePatent and Trademark Office patent file or records, but otherwisereserves all copyright rights.

FIELD

The field relates generally to geometric modeling using polygonal meshesfor computer graphics, and more particularly relates to techniques foroptimizing computer resource (e.g., memory, CPU, etc.) requirements forthe piece-wise manipulation of large-scale meshes.

BACKGROUND AND SUMMARY

Rendering real-time views on a complex model is a computation-intensivetask. Current methods generally rely on encoding real-world objects in acomplex three-dimensional geometric model which approximates thesurfaces, textures and locations of the real-world objects. Objects areusually represented as a collection of polygons (but can be amathematical description, fractal or the like) which are collectedtogether to form a mesh having the shape and visual and/or tactilecharacteristics of the encoded real-world object. Realistic models ofany reasonable size, e.g., simulating large-scale terrain meshes (seeFIG. 2), can contain hundreds of meshes with millions of polygons torepresent a realistic view of reality. Consequently, enormous computerresources are required to manipulate large meshes.

To simplify processing when rendering views of such detailed scenes,view-dependent progressive-meshes (VDPM) were developed. Hoppe shows aVDPM framework that represents an arbitrary delta-mesh (base mesh plusdeltas required to produce a more detailed mesh) as a hierarchy ofgeometrically optimized transformations. A series of geomorph operationscan be performed to convert between differing levels of detail of theprogressive mesh. (For further information, see Hoppe, ProgressiveMeshes, Computer Graphics Proceedings, Annual Conference Series (ACMSIGGRAPH), pp. 99-108 (1996); Hoppe, View-Dependent Refinement ofProgressive Meshes, ACM SIGGRAPH, pp. 189-198 (1997).)

For further information regarding techniques for constructing and usingprogressive meshes, view-dependent progressive meshes, and geomorphs,see: U.S. Pat. No. 5,963,209 for Encoding And Progressive Transmittingof Progressive Meshes, bearing application Ser. No. 08/586,953 and filedJan. 11, 1996; U.S. Pat. No. 5,966,133 for Selective Refinement OfProgressive Meshes, bearing application Ser. No. 08/797,501 and filedFeb. 7, 1997; U.S. Pat. No. 6,108,006 for View-Dependent Refinement ofProgressive Meshes, bearing application Ser. No. 08/826,570 and filedApr. 3, 1997; U.S. Pat. No. 6,137,492 for Adaptive Refinement ofProgressive Meshes, bearing application Ser. No. 08/826,573 and filedApr. 3, 1997; and U.S. Pat. No. 5,966,140 for a Method for CreatingProgressive Simplicial Complexes, bearing application Ser. No.08/880,090 and filed Jun. 20, 1997. These patents are incorporatedherein by reference.

A problem with progressive mesh implementations is that they generallyallocate storage based on the size of the original fully-detailed mesh.The Hoppe VDPM framework alleviates some of these resource requirementsby representing the original fully detailed mesh as a progressive meshstoring a simplified base mesh and a sequence of mesh refinementtransformations (i.e., vertex splits). These refinements, when appliedto the base mesh, exactly reconstruct the original fully detailed mesh.

To further reduce resource requirements, Hoppe defines a viewpoint withrespect to the mesh, and implements a “selectively refined mesh” (SRM),which is a mesh that is altered based on satisfying certain viewingcriteria. The viewpoint corresponds to what a user might see of a mesh,or to what is visible in a viewport. The result is view-dependent levelof detail (LOD) applied to different portions of a mesh. For example,viewing conditions may depend on the location of a flight simulatorpilot in a mesh model, so that mesh detail centers on those portions ofthe mesh near the pilot's plane. For a view-dependent LOD, vertices ofthe mesh are either coarsened or refined based on the view-dependentrefinement criteria. Examples of view-dependent criteria affecting theoccurrence of a vsplit (vertex split) operation is whether a vertex'sneighborhood intersects the view frustum (see FIG. 7), has a Gauss mapnot strictly oriented away, or has a screen-projected deviation from M(the original fully detailed mesh) that exceeds a pre-determined pixeltolerance. The mesh alteration is either effected instantly, orgeomorphed (interpolated) over time. Which method is used depends onwhether an affected mesh region is entering, leaving, or staying withina particular viewing frustum (e.g. the view dependency). Only portionsof a mesh remaining in view (i.e., within the frustum) need to begeomorphed to avoid “popping” the mesh alteration into place.

A significant problem with progressive mesh systems, however, is thatthey consume computer resources proportional to the size of the fullydetailed mesh M^(n). That is, in the prior art, if M^(n) has p faces,but has been simplified into a simpler mesh M⁰ having only q faces,where q<<p (much less than), memory and other computer resources areallocated on a scale proportional with the connectivity of the largermesh M^(n). For example, to compute a geomorph between two SRMs of theprogressive mesh hierarchy, some prior art methods require computationsinvolving all vertices, rather than on just those vertices needed for aview-dependent computation. Requiring resource allocation for inactivevertices is very inefficient.

To minimize resource requirements, the technology can optimize storagerequirements by utilizing dynamic data structures for storing andmanipulating a mesh that allocate storage based on the active verticesof the mesh. Thus, storage requirements fluctuate according toview-dependent criteria. Instead of statically storing mesh connectivityfor an entire fully detailed mesh M^(n) (prior art), static datastructures only encode the vertex hierarchy of the simplest mesh M⁰ andthe refinement dependencies required to produce M^(n). Separate dynamicdata structures encode, according to changes in view-dependentparameters, vertices and morph states for an active mesh. This resultsin substantial resource savings when (as is typical) the fully detailedmesh is large, but the number of active vertices is just a small subsetof the overall number of vertices.

However, if a mesh has a huge number of faces, such as for a largeterrain mesh, even with dynamic data allocation, resource requirementsmay still be very substantial.

To overcome this problem, the original fully detailed mesh is subdividedinto multiple arbitrarily shaped “start” regions, which when combined,represent the entire original mesh. For simplicity, it is assumed theregions are rectangular. When dividing the original mesh, each startregion is recursively subdivided into smaller sub-regions, until a stopstate is reached. Such a stop state may be based on region size, regioncomplexity, resource requirements (e.g., memory or processing), or someother predetermined basis. When the recursion stop state is reached(assuming a simple recursive algorithm), each start region has beensubdivided into many smaller mesh regions. Before falling back in therecursion process, each stop state region is simplified to apredetermined level of simplification. This corresponds to a standardprogressive mesh computation of the most detailed (e.g. bottom) level ofthe mesh hierarchy.

The now-simplified stop state regions are stitched together to form alarger region. This undoes the region division of the previous recursivestep. On falling back in the recursion this larger stitched region isthen again simplified and stitched with other regions from this previousrecursive level. Note that although the term “stitched” is used, themesh may be stored such that only one copy of the mesh exists, so thatsimplifying the stop state regions directly simplifies the originalmesh. So long as the simplification steps are recorded, the originalmesh may be selectively replaced in the simplification process.Eventually all recursive levels are traversed, leaving a very simplemesh (M⁰) having only a few triangle faces.

During manipulation of the mesh hierarchy, selective refinement orcoarsening operations can be constrained to operate only within a singlesub-region. This is a natural restriction since a proper blocking, whereno faces cross a region border, yields independent sub-regions. Onmulti-processor machines, or where operating systems/programmingenvironments provide multi-tasking or multi-threading services, meshoperations for each region can therefore be processed in parallel.

Additional features and advantages of the invention will be madeapparent from the following detailed description of an illustratedembodiment which proceeds with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer system that may be used toimplement a method and apparatus embodying the invention for run-timegeomorphs and optimizing resource requirements for meshes.

FIG. 2 shows an exemplary terrain mesh.

FIG. 3 illustrates an edge collapse operation.

FIG. 4 shows a heuristic incorrectly measuring mesh approximation error.

FIG. 5 shows a preferred method for evaluating mesh approximation error.

FIG. 6 shows a progressive mesh hierarchy.

FIG. 7 shows exemplary data structures used by illustrated embodiments.

FIG. 8 shows pseudocode for an instantaneous vertex splittransformation.

FIG. 9 shows a top-down view of forward motion of a viewer through amesh.

FIG. 10 shows changes to the FIG. 9 mesh resulting from the viewer'sforward movement.

FIG. 11 shows pseudocode for a refinement operation.

FIG. 12 shows pseudocode for an update_vmorphs( ) procedure.

FIG. 13 shows an adapt_refinement( ) function for performing geomorphrefinement.

FIG. 14 shows the creation of a hierarchical region-based representationof a large-scale terrain mesh.

FIG. 15 illustrates pseudo-code for partitioning and simplifying a mesh.

FIG. 16 illustrates the hierarchical progressive mesh formed from theFIG. 14 process.

DETAILED DESCRIPTION OF ILLUSTRATED EMBODIMENTS

The technology is directed toward geometric modeling using polygonalmeshes for computer graphics. In particular, a view-dependentprogressive-mesh framework allows view-dependent level-of-detail controlover arbitrary triangle meshes. Such view-dependent control over meshrendering is particularly well-suited for interactive environments, suchas 3D games presenting flights over background meshes, or fly-throughreviews of multi-dimensional models (e.g., a real-time fly-through of aCAD/CAM project). In such situations, a viewer/user only sees a smallportion of an entire mesh model, and within the visible portion of themesh many regions are distant and can therefore be represented at acoarser level-of-detail.

The technology conserves computer resources by limiting most resourceallocation to those areas of the mesh that are visible (or near) to theviewer/user. Known progressive-mesh techniques are extended to achievetemporal coherence through the runtime creation, in real-time, ofgeomorphs. Creating geomorphs at run-time allow the mesh to remain in acoarse state until such time as user movement requires refining portionsof the mesh. The technology also conserves computer processing resourcesby distributing active-vertex evaluations and geomorph operations acrossmultiple (possibly overlapping) operations.

For very large meshes, the technology can recursively subdivide thesemeshes into small mesh regions such that for each recursion level, asthe recursion unwinds, the smaller regions are simplified and combinedinto larger regional meshes. After fall back to a previous recursionlevel, these larger meshes are then simplified and combined. Thisprocess repeats until all regions have been combined and simplifiedduring recursion unwinding. The final result is a base mesh for aprogressive mesh hierarchy, but where all refinement operations neededto obtain the fully detailed mesh have been determined from processingthe arbitrarily sized regions. The refinement operations are groupedaccording to the regions defined for the original input mesh, thusallowing memory utilization to be optimized. An additional advantage ofthe technology is that the maximum error for a mesh region can betracked as the region is simplified during preparation of the meshhierarchy, thereby allowing refined rendering of some regions to beentirely avoided if its impact on an output device is determined to beinsignificant (thus saving on having to allocate resources for suchrefinements).

For very large meshes exceeding available RAM, the initial partitioningof the mesh can be performed without loading the entire fully detailedmesh into memory. Instead, the mesh can be initially partitioned byperforming a partial-load of mesh data into memory, or by manipulatingmesh data in permanent storage (e.g. tape, disk or CD-RW). Region sizescan be selected so that an entire region will fit within a single pageof memory, thus increasing memory access/efficiency.

Exemplary Operating Environment

FIG. 1 and the following discussion are intended to provide a brief,general description of a suitable computing environment in which thetechnology may be implemented. While the technology will be described inthe general context of computer-executable instructions of a computerprogram that runs on a personal computer, those skilled in the art willrecognize that the technology also may be implemented in combinationwith other program modules. Generally, program modules include routines,programs, components, data structures, etc. that perform particulartasks or implement particular abstract data types. Moreover, thoseskilled in the art will appreciate that the technology may be practicedwith other computer system configurations, including hand-held devices,multiprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers, and the like. Theillustrated embodiment of the technology also is practiced indistributed computing environments where tasks are performed by remoteprocessing devices that are linked through a communications network.But, some embodiments of the technology can be practiced on stand alonecomputers. In a distributed computing environment, program modules maybe located in both local and remote memory storage devices.

With reference to FIG. 1, an exemplary system for implementing thetechnology includes a conventional personal computer 20, including aprocessing unit 21, a system memory 22, and a system bus 23 that couplesvarious system components including the system memory 22 to theprocessing unit 21. The processing unit may be any of variouscommercially available processors, including Intel x86, Pentium andcompatible microprocessors from Intel and others, including Cyrix, AMDand Nexgen; Alpha from Digital; MIPS from MIPS Technology, NEC, IDT,Siemens, and others; and the PowerPC from IBM and Motorola. Dualmicroprocessors and other multi-processor architectures also can be usedas the processing unit 21.

The system bus 23 may be any of several types of bus structure includinga memory bus or memory controller, a peripheral bus, and a local bususing any of a variety of conventional bus architectures (e.g., PCI,AGP, VESA, Microchannel, SSA, ISA, EISA, IEEE1394, Fibre Channel, andSCSI-FCP, etc.). The system memory 22 includes read only memory (ROM) 24and random access memory (RAM) 25. A basic input/output system (BIOS),containing the basic routines that help to transfer information betweenelements within the personal computer 20, such as during start-up, isstored in ROM 24.

The personal computer 20 further includes a hard disk drive 27, amagnetic disk drive 28, e.g., to read from or write to a removable disk29, and an optical disk drive 30, e.g., for reading a CD-ROM disk 31 orto read from or write to other optical media. The hard disk drive 27,magnetic disk drive 28, and optical disk drive 30 are connected to thesystem bus 23 by a hard disk drive interface 32, a magnetic disk driveinterface 33, and an optical drive interface 34, respectively. Thedrives and their associated computer-readable media provide nonvolatilestorage of data, data structures, computer-executable instructions, etc.for the personal computer 20. Although the description ofcomputer-readable media above refers to a hard disk, a removablemagnetic disk and a CD, it should be appreciated by those skilled in theart that other types of media which are readable by a computer, such asmagnetic cassettes, flash memory cards, digital video disks, Bernoullicartridges, and the like, may also be used in the exemplary operatingenvironment.

A number of program modules may be stored in the drives and RAM 25,including an operating system 35, one or more application programs 36,other program modules 37, and program data 38.

A user may enter commands and information into the personal computer 20through a keyboard 40 and pointing device, such as a mouse 42. Otherinput devices (not shown) may include a microphone, joystick, game pad,satellite dish, scanner, or the like. These and other input devices areoften connected to the processing unit 21 through a serial portinterface 46 that is coupled to the system bus 23, but may be connectedby other interfaces, such as a parallel port, game port or a universalserial bus (USB). A monitor 47 or other type of display device is alsoconnected to the system bus 23 via an interface, such as a video adapter48. In addition to the monitor 47, personal computers typically includeother peripheral output devices (not shown), such as speakers andprinters.

The personal computer 20 may operate in a networked environment usinglogical connections to one or more remote computers, such as a remotecomputer 49. The remote computer 49 may be a server, a router, a peerdevice or other common network node, and typically includes many or allof the elements described relative to the personal computer 20, althoughonly a memory storage device 50 has been illustrated in FIG. 1. Thelogical connections depicted in FIG. 1 include a local area network(LAN) 51, wide area network (WAN) 52, and a gateway 55. Such networkingenvironments are commonplace in offices, enterprise-wide computernetworks, intranets and the Internet.

When used in a LAN networking environment, the personal computer 20 isconnected to the local network 51 through a network interface or adapter53. When used in a WAN networking environment, the personal computer 20typically includes a modem 54 or other means for establishingcommunications over the wide area network 52, such as the Internet. Themodem 54, which may be internal or external, is connected to the systembus 23 via the serial port interface 46. In a networked environment,program modules depicted relative to the personal computer 20, orportions thereof, may be stored in the remote memory storage device. Itwill be appreciated that the network connections shown are exemplary andother means of establishing a communications link between the computersmay be used.

In accordance with the practices of persons skilled in the art ofcomputer programming, the technology is described below with referenceto acts and symbolic representations of operations that are performed bythe personal computer 20, unless indicated otherwise. Such acts andoperations are sometimes referred to as being computer-executed. It willbe appreciated that the acts and symbolically represented operationsinclude the manipulation by the processing unit 21 of electrical signalsrepresenting data bits which causes a resulting transformation orreduction of the electrical signal representation, and the maintenanceof data bits at memory locations in the memory system (including thesystem memory 22, hard drive 27, floppy disks 29, and CD-ROM 31) tothereby reconfigure or otherwise alter the computer system's operation,as well as other processing of signals. The memory locations where databits are maintained are physical locations that have particularelectrical, magnetic, or optical properties corresponding to the databits.

Exemplary Complex Mesh

FIG. 2 shows an exemplary mesh containing 4,097 by 2,049 vertices, eachhaving associated color and elevation data, corresponding to roughly 17million triangles. This complex mesh cannot be real-time rendered onconventional computing hardware with prior art rendering systems.

The problem with such a large mesh is that the general approach forrendering such surfaces is to exploit the traditional 3D graphicspipeline, which is optimized to transform and texture-map triangles. Thegraphics pipeline has two main stages: geometry processing andrasterization. Typically, the rasterization effort is relatively steadybecause the rendered surface has low depth complexity. In the worstcase, the model covers the viewport, and the number of filled pixels isonly slightly more than that in the frame buffer. Current graphicsworkstations (and soon, personal computers) have sufficient fill rate totexture-map the entire frame buffer at 30-72 Hz, even with advancedfeatures like trilinear mip-map filtering and detail textures. Such 3Dprocessing speed is largely due to the advent of inexpensiveconsumer-oriented 3D graphics boards optimized for processing 3Dgraphics languages used to encode the models. Consequently, geometryprocessing proves to be the bottleneck. (Note that the techniquesdiscussed herein can be applied to speed-up hardware-based geometryprocessors, for 3D graphics languages such as OpenGL, which are designedto widen the processing bottleneck.)

Due to this bottleneck, in the prior art, complex meshes requirespecialized hardware in order to render them in real time, since mosthigh-end graphics platforms can not process, in real time, the geometryfor more than a small fraction of the 17 million triangles. Thetechnology can overcome this problem by optimizing the representation ofthe complex mesh. A progressive mesh hierarchy, having multiple simplermeshes, is substituted in real-time for portions of the fully detailed(original/complex) mesh. Substitutions are made in real-time withrespect to a viewer/user's changing viewing perspective (viewpoint)within the mesh, thus providing for real-time processing of complexmeshes.

It is important to realize that when handling complex meshes, there islittle point in rendering more triangles than there are pixels on anoutput device. For example, as noted, the FIG. 2 mesh has 17 milliontriangles. Output devices, such as monitors, commonly have about onemillion pixels. 17 million triangles represent a level of detailunnecessary for the display output device, and many of the triangles canbe removed without appreciably altering output quality. It is alsoimportant to recognize that a mesh surface usually exhibits significantspatial coherence, so that its perspective projection can beapproximated to an accuracy of a few pixels by a much simpler mesh. Forexample, for the complex FIG. 2 mesh, a simpler mesh having only2,000-20,000 triangle faces can serve as a reasonable substitute for the17 million triangles.

Mesh Alteration

In order to simplify a fully detailed mesh M^(n) such as FIG. 2, themesh M^(n) is decomposed (see FIG. 3) into multiple level of detail(LOD) layers arranged in a vertex hierarchy (see FIG. 6 discussion). Theoriginal mesh is simplified through a sequence of n edge collapsetransformations. These edge collapse transformations (or their inversevertex splits) define a vertex hierarchy. Note that the number of layersin this hierarchy is generally much smaller than n (and closer tolog₂n). For choosing the sequence of edge collapses, the goal is to letthe simplified meshes M^(i) be most “like” the original mesh M^(n). (Thelayers/levels in the hierarchy do not guide the simplification process).In determining each level of the hierarchy, the goal is to providesimpler meshes that are most “like” the more detailed mesh. There aremany possible ways to simplify a mesh.

The best representative meshes are potential meshes M^(p) having theleast amount of error with respect to a more detailed mesh. Comparisonscan be made between more-detailed intermediate meshes M^(i+1), or morepreferably, against the fully detailed mesh M^(n). A heuristic h isemployed to compute the error between a more detailed mesh and thepotential mesh, and quantify the degree of similarity between themeshes. The potential mesh M^(p) having lowest error is selected to bethe simplified mesh M^(i) for a given level i of the hierarchy. In otherwords, a potential mesh M^(p) results from applying collapse/splitoperations to a previous mesh, where the goal is to apply a heuristic todetermine the “best” possible potential mesh. The term “heuristic”includes evaluating each and every collapse/split operation, as well asafter a group of such modifications.

FIG. 3 illustrates an edge collapse 100 operation. An edge collapse(ecol) is the fundamental operation for simplifying a mesh. During anedge collapse, an edge within the mesh is removed, and the associatedvertices collapsed into a single vertex. Similarly, but in reverse, avertex split 102 takes a single vertex and breaks it into two separatevertices, and an edge and two faces are added between them. In bothoperations, mesh connectivity is updated to reflect the changes to themesh, and as discussed below, the effects can be spread over time(geomorphed) to reduce “popping” and “snapping” of mesh alterations.

Preferably, identifying and updating meshes is performed dynamically asviewing parameters change, and is referred herein as view-dependentlevel-of-detail (LOD) control. The general issue is to locally adjustthe complexity of the approximating mesh to satisfy a screen-space pixeltolerance while maintaining a rendered surface that is both spatiallyand temporally continuous. To be spatially continuous, the mesh shouldbe free of cracks and T-junctions. To be temporally continuous, therendered mesh should not visibly “pop” from one frame to the next(real-time geomorphs can be used to smooth mesh rendering).

The illustrated edge collapse 100 and vertex split 102 operationsinvolve two vertices v_(u), v_(t). These operations are applicable toarbitrary triangle meshes, not just height fields, terrains, orelevation data. However, if one is rendering terrains, specialoptimizations can be made, such as the omission of normals and otherelements in the data structures storing the mesh. (See FIG. 7discussion.) The collapse operation combines the two vertices into asingle vertex, and readjusts triangle sides and faces accordingly. Thereverse operation is the vertex split. The visual result of these twooperations is to have the vertices gradually shift position over time.The triangle faces fl and fr disappear after the collapse is completed,and the connectivity for faces f_(n0), f_(n1), f_(n2), and f_(n3) isreadjusted. Splits are used to define multi-resolution hierarchies forarbitrary meshes. The vertex hierarchy (FIG. 6) is constructed from ageometrically optimized sequence of edge collapse/splits in aprogressive mesh representation. As shown in FIG. 3, v_(u) and v_(t) arecollapsed into vertex v_(s).

In order to simplify a mesh, a set of all possible edge collapses has tobe generated and evaluated. For any potential collapse, a heuristic hevaluates the effect of edge collapse operation, and this information isused to identify which collapses result in a mesh “most like” a moredetailed mesh.

Comparisons can be made between any mesh LOD, not just an immediatelypreceding/following mesh level. For example, the heuristic h can compareany potential mesh (defined by proposed edge collapse operations)against the original fully detailed mesh M^(n). (Comparing to M^(n) isthe preferred method for approximation-error calculation.)

For terrain meshes, the conventional method of evaluating an edgecollapse operation is to apply a heuristic which evaluates approximationerror based on maximum vertical deviation at the original grid points,which can result in significant errors. For view dependent LOD of aterrain mesh, such inexact evaluations are unacceptable.

FIG. 4 illustrates a heuristic measuring error at original grid points,resulting in an incorrect “optimal” edge collapse operation. Shown aretwo meshes 150, 152, respectively having vertices 154, 156 (onlyrepresentatives indicated) identified with a circle. Each vertex has anassociated height field 158. A proposed edge collapse operationcollapses vertices V_(t) and V_(u) of the first mesh 150 into vertexV_(s) of the second mesh 152.

Conventionally, the operation is evaluated at original vertex points 154and 156 (the first mesh's corresponding vertices in the second mesh). Itappears there is an approximation error of zero, because there appearsto have been no height deviation resulting from the collapse operation(all vertices have maintained the same height).

But, this is an erroneous result. An inspection of the resultant mesh'spiecewise interpolant shows a severe alteration. (An interpolant is apoint within a plane defined as passing through all vertices of a face.)New interpolated vertices I_(w), and I_(x) originally had height valuesof zero (mesh 150) and now have respective height values of 1 and 2(mesh 152). This corresponds to a mesh having substantially differentgeometry from the original mesh. Even though both interpolants arearguably equally valid, it is clear that the two meshes will renderdifferently. Such errors, even in a single rendering operation, canproduce significant pops and visual discontinuities since the heightvalue (as illustrated) can suddenly increase (pop), yet appear to be“optimal” at the original vertices.

Thus, a heuristic h which evaluates a collapse by inspecting originalvertex points can lead to severely inaccurate rendering. For viewdependent LOD of a terrain mesh, this is not tolerable. (See De Florianiet al., Multiresolution models for topographic surface description, TheVisual Computer, vol. 12, no. 7, pp. 317-345 (1996); Garland et al.,Fast polygonal approximation of terrains and height fields, CMU-CS95-181, CS Dept., Carnegie Mellon University (1995).)

A better method is to compare all interpolated points to the originalfully detailed (M^(n)) mesh data.

FIG. 5 illustrates using exact-approximation to evaluate potential meshcollapse operations. Shown is a proposed collapse of vertices V_(t) andV_(u) into vertex V_(s). Here, maximum approximation error (L∞) ismeasured with respect to a reference surface formed from the regulartriangulation of the original grid points. (Note that it does not matterif a regularly triangulated reference surface is used instead of theoriginal fully detailed mesh.) Instead of inspecting a proposedtransformation at original grid points, as is done in the prior art(FIG. 4), the maximum height deviation between the regular triangulatedgrid 160 of the original mesh (M^(n)) points and the open neighborhoodof each edge collapse transformation is computed. The open neighborhoodconcept is well known, and refers to those faces and vertices adjacentto V_(s), that are affected by a proposed edge collapse operation.

The maximum height deviation between two triangle meshes is known to lieat a vertex of their union partition 162 (not all markers indicated withlead lines) in the plane. An efficient way to enumerate the vertices ofthe union partition is to consider the grid points adjacent to V_(s)that are internal to the faces (labeled with squares), and internal tothe edges (labeled with circles). The squares identify vertices of theoriginal grid, and the circles identify the intersection points betweenedges 160 of the reference surface, and edges 164 of a mesh after aproposed edge collapse. The central vertex V_(s), by definition, has noerror and is labeled with a diamond. (All such marked points arecollectively item 162.)

For any two meshes, maximum error has to occur at one of the markedpoints 162. Therefore, error is computed for each point and the maximumerror is simply the largest error value for those points. Error iscomputed by evaluating the vertical deviation between the referencesurface and current mesh; this computed error is not just anupper-bound, it is exact with respect to the original fully detailedmesh. All potential edge collapses are evaluated and the collapseproviding the smallest maximum error is selected. This error is storedin a Vsplit field (see FIG. 7 discussion). (See also Eck et al.,Multiresolution analysis of arbitrary meshes, SIGGRAPH Proceedings, pp.173-183 (1995).)

If the original mesh is being partitioned into smaller sub-regions (FIG.14), a maximum error value may be tracked for all collapse operationswithin a given region, allowing processing of some blocks to be skippedif the error value indicates an insignificant impact on rendering to anoutput device.

FIG. 6 shows a progressive mesh hierarchy formed from applying the FIG.3 edge collapse operations to part of the FIG. 2 exemplary mesh.

The complex triangular mesh of FIG. 2 can be partially replaced by a setof pre-computed level of detail (LOD) approximations that are storedwithin a progressive mesh. It is well understood that a progressive mesh(PM) is a fully detailed mesh M^(n) that has been deconstructed into nlevels of detail, each LOD progressively simplifying a preceding mesh,until a base mesh M⁰ is reached. M⁰ represents the simplest form of meshM^(n) in use in the system, which may correspond to just a fewtriangles. A progressive mesh representation for M^(n) is obtained bysimplifying M^(n) using n successive edge collapse transformations andrecording their inverse. That is, an edge collapse operation between twovertices, ecol({v_(s), v_(t)}), unifies two adjacent vertices v_(s) andv_(t) into a single vertex v_(s′); the vertex v_(t) and two adjacentfaces F_(L) ({v_(t), v_(s), v_(L)}) and F_(R) ({v_(t), v_(s), v_(R)})vanish in the process. For terrain meshes, the exact approximationtechnique ensures the validity of each intermediate LOD mesh M^(i).

The particular sequence of edge collapse operations must be chosencarefully since they determine the quality of the intermediate levels ofdetail. Each of the n LOD operations can be stored in data structures(see FIG. 7) tracking the series of vertex splits which, when applied toa current mesh M^(i), results in a more refined mesh M^(i+1). If noinitial simplifications have been made, applying all n transformationsresults in the original detailed mesh M^(n).

Each of the LOD refinements are stacked to form a tree-like vertexhierarchy. Root nodes correspond to the vertices of the base mesh M⁰,and leaf nodes correspond to the fully detailed mesh M^(n). It isimportant to note that the sequence of vsplit refinements required toperform a view-dependent refinement uniquely define a vertex hierarchy,and permits the creation of selectively refined meshes, or meshes not inthe original pre-computed refinement sequence. Although there is aparticular ordering to the edge split or collapse operations, dependenton how the coarse mesh M⁰ was developed, preferably all operations for agiven LOD need not be performed. Instead, a vertex front can be definedthrough the vertex hierarchy. This front defines an active mesh,representing a particular series of edge collapse and vertex splitoperations.

In a view-dependent progressive-mesh (VDPM) framework, a sequence ofrefinement transformations uniquely defines a vertex hierarchy 200, inwhich the root nodes 202-206 correspond to the vertices of a base(simplest) mesh M⁰, and the leaf nodes 208-224 correspond to the fullydetailed mesh. This hierarchy permits the creation of selectivelyrefined meshes, which as discussed above, are meshes not necessarily inthe original sequence.

A selectively refined mesh is defined by a “vertex front” 226 across thevertex hierarchy, and is obtained by incrementally applyingtransformations subject to a set of legality conditions/viewingconstraints. Applying a particular sequence of refinements or coarseningoperations results in a particular “active mesh,” which is much simplerthan the fully detailed mesh M^(n). This simplicity allows real-timemanipulation of the simpler mesh.

Prior to rendering a frame, the active vertex front is traversed, andeach vertex is either coarsened or refined based on view-dependentrefinement. Refinement is performed if a vertex's neighborhood satisfiespredetermined criteria set according to the type of data being rendered.For large terrain meshes (or large triangle meshes), the preferredcriteria is that the neighborhood satisfy 3 requirements: (1) itintersects the view frustum (the region of a mesh visible to aviewer/user), (2) its Gauss map is not strictly oriented away, and (3)its screen-projected deviation from the original mesh exceeds auser-specified pixel tolerance. For efficient and conservative runtimeevaluation of these criteria, each vertex in the hierarchy stores thefollowing: a bounding-sphere radius, a normal vector, a cone-of-normalsangle, and a deviation space encoded by a uniform component and adirectional component. It is understood that other criteria, such ascolor or other characteristics, may also be stored therein.

It is assumed that the size of an active mesh M^(i) (having m vertices)is much smaller than that of the fully refined mesh M^(n) (having nvertices). Therefore, a fully detailed mesh has order n vertices and 2nfaces, and the simpler mesh has order m vertices and 2m faces.

FIG. 7 shows exemplary data structures used by illustrated embodiments.

A limitation of prior art progressive mesh methods, such as the VDPMtaught in U.S. Pat. No. 5,963,209, is that all data structures scaleproportionally with the size n of the fully refined mesh. In particular,static storage is allocated to represent the mesh connectivity for allfaces in the mesh even though only a small fraction are usually activeat any one time. This requires extensive resources in order to computegeomorph transforms. To overcome this problem, instead of allocatingresources based on the size of the fully detailed mesh, most allocationsare deferred until vertices are used (i.e. become “active”) inprocessing the mesh.

As shown the structures are separated into two parts: a static part 250encoding a vertex hierarchy 200 (FIG. 6) and refinement dependencies,and a dynamic part 252 encoding the connectivity of just the active meshM^(i). The static part is of size order n (here 88n bytes), and thedynamic part is of size order m (here 112m bytes). The static structuresVertex 256, Face 258, Vsplit 260, are allocated for each vertex in thehierarchy 200, as reflected by the arrays vertices 264 a, faces 264 b,and vsplits 264 c in the SRMesh structure 264. The dynamic structuresAVertex 266, AFace 268, VertexMorph 270, as discussed below, areallocated on an as needed basis.

The first of the static structures is VGeom 254, which contains thegeometry for a point. Elements of the structure are a point 254 a oftype Point and a normal 254 b of type Vector. The point represents thelocation within 3D space (which can be real-world or unit space), andthe normal for the point. VGeom is never allocated on its own, but isused as a type declaration (like ListNode) and is allocated within theVsplit, AVertex, and VertexMorph structures.

Structure Vertex 256, (of which there are 2n in array vertices 264 a),contains pointers 256 a, 256 b to a dynamically allocated AVertex 266,and its parent Vertex structure, and an index i 256 c of the vsplit_(i)operation that creates its children. Index i is set to −1 if the vertexis a leaf node of the hierarchy. Since vertices are numberedconsecutively, the index i is sufficient to compute the indices of thetwo child vertices v_(t) and v_(u) and vsplit operation, and of the oneor two child faces f_(l) and f_(r) (see FIG. 3). This is accomplished byallocating two Face 258 structures to each vsplit even in the rare casethat the vsplit creates only one face.

Structure Face 258, (of which there are 2n in array faces 264 b),contains a pointer 258 a to a dynamically allocated AFace 268 structure.The pointer 258 a is set to 0 (or other value indicating non-use) if theface is not active. An active face is one that is presently in theactive mesh.

Structure Vsplit 260 (of which there are n in array vsplits 264 c)contains a geometry element 260 a for a child vertex v_(u), an array 206b for storing the four neighboring faces f_(n0), f_(n1), f_(n2), f_(n3)(See FIG. 3.), and four floating point values for a bounding-sphereradius 260 c which contains the maximum extent r_(v) of an affectedregion, a cone-of-normals angle sin² α_(v) 260 d, a uniform error μ_(v)260 e, and a directional error δ_(v) 260 f. (See screen-space errordiscussion below.)

When encoding a terrain mesh, one can optimize the Vgeom and Vsplitstructures by discarding the normal 254 b, sin 2alpha 260 d, anduni_error 260 e structure elements. (Values that can be discarded whenprocessing terrain meshes are flagged with a † symbol.) The reason isthat these normals are usually used in backface simplification andshading operations prior to rendering the mesh. But, by virtue of theviewing perspective on a terrain mesh, most faces are visible andbackface simplification is too costly with respect to the number offaces actually removed (i.e., rendering savings are less thancomputation time).

Normals are not required to map the mesh's texture onto the mesh becausea vertical projection is employed. Preferably an image map is used thatis the same size as the mesh and therefore texture coordinates can bedetermined implicitly. When mapping the texture to the mesh, the shapeof the mesh is used to warp the texture to conform to the mesh.

Structure Listnode 262 defines a general doubly-linked list. Thisstructure contains pointers to the previous 262 a and next 262 b nodesin the node list. The list is used both by the Aface and by the AVertexnodes, as well as the head of lists active_vertices 264 d andactive_faces 264 e to keep track of active faces and vertices.

Structure SRMesh 264 corresponds to a particular selectively refinablemesh M^(i). Within SRMesh are three arrays and two ListNode lists. Thefirst array 264 a, of size order 2n, is an array containing all verticesin the hierarchy. The second array 264 b, of size order 2n, is an arraycontaining all faces in M^(n). (Note that any selectively refined meshcontains a subset of the faces of M^(n)) The third array 264 c, of sizeorder n, is an array containing the chain of vertex split operationsencoding how to generate the completely detailed mesh M^(n) from currentmesh M^(i). Recall that the vertex split lists are generated byrecording, in reverse order, the generation of the base (i.e., mostsimplified) mesh M⁰. The first ListNode list 264 d tracks the head ofthe active vertex list, and the second ListNode list 264 e tracks thehead of the active face list. Since only 2,000-20,000 triangles may beactive out of 17 million triangles in a mesh, only allocating space foractive vertices and faces greatly reduces memory consumption.

The dynamically allocated structures 252 require order m storage space(recall that m is the number of active vertices), which is significantlyless space then order n (m<<n). One can also optimize access as well asstorage requirements through register-variable optimizations, optimizingmemory boundaries, in-line coding, loop-reductions, etc. For clarity,these compile-time optimizations have been omitted.

The first dynamic structure of FIG. 7 is the AVertex 266 structure, ofwhich there are m, that contains the active vertices in the hierarchy.Contained within the structure is a ListNode 266 a reference to adoubly-linked list of all active vertices in the mesh hierarchy. AVertex pointer 266 b points back to the static Vertex 256 referencingthis structure. A VGeom element contains the x, y, z coordinates for theVertex 256 allocating this structure (266). Unless a vertex is in use,this structure is not allocated. This contrasts prior artprogressive-mesh schemes which allocated storage for every node in thehierarchy irrespective of its activity. Element vmorph points to aVertexMorph structure (described below) which tracks morphing vertices.It is set to 0 if the vertex is not currently morphing.

Structure AFace 268, of which there are approximately 2m, tracks theactive faces in the selectively refined mesh. This structure contains aListNode list 268 a tracking the list of active faces. An AVertexpointer 268 b points to the three vertices, ordered counter-clockwise,that make up the face defined by this structure 268. An AFace pointer268 c points to the (up to) three neighboring faces of the face definedby this structure. Recall that these are the neighboring faces borderingthe current triangle face, and they are numbered such that a neighboringface j is located across from (opposite to) a vertex j of the currenttriangle face.

The final element is an integer 268 d referencing a texture tileidentifier for the face. Rather than storing textures themselves, onlyindices 268 d into a texture mapping are tracked.

Structure VertexMorph 270, of which there are g (the number ofgeomorphing vertices), represents each vertex that is in the process ofgeomorphing. This structure contains a boolean value 270 a indicatingwhether the vertex 256 associated with this structure(Vertex→AVertex→VertexMorph) is undergoing coarsening.

Also within structure VertexMorph 270 is a gtime counter 270 bindicating the number of remaining frames in the associated vertex's 256geomorph, and two VGeom elements. The first VGeom entry vg_refined 270 cstores a backup copy of the morphing vertex's refined geometry, and isused as a temporary placeholder in functions such as vsplit to maintainthe vertex's current state before it is altered. One skilled in the artwill recognize that the vg_refined 270 c variable can be removed fromthe vsplit function by increasing the complexity of the code.

To enable geomorphs, each active vertex has a field vmorph 266 d, whichpoints to a dynamically allocated VertexMorph record 270 when the vertexis morphing. In practice, the number g of morphing vertices is only afraction of the number m of active vertices, which is itself only asmall fraction of the total number n of vertices. (m<<n).

Overall, then, the data structures need 88n+112m+52g bytes (i.e.,12(2n)+4(2n)+56n+40m+36(2m)+52g). These requirements are much less thanthe storage requirements of other methods, which require upwards of 224nmemory resources (see, for example, U.S. Pat. No. 5,963,209). Inaddition, because in practice the number of active faces 2m is generallyabout 12,000, and 12,000 is less than 65,536, the AVertex*256 a andAFace*258 a pointers in the static structure can be replaced by 16-bitindices. Additionally, in Vsplit 260 we can quantize the coordinates to16 bits and use 256-entry lookup tables for {r_(v), u_(v) ², o_(v) ²,sin² a_(v)}.

Static storage is then reduced from 88n to 56n bytes. And, if encoding aterrain mesh, where Vgeom and Vsplit have been optimized by discardingthe normal, sin2alpha, and uni_error elements, static storage is reducedto 48n bytes using 16-bit indices, quantization, and lookup tables. Incomparison, a standard representation for a pre-simplified, quantized,irregular mesh uses 42n bytes of memory, (n)(12) bytes for positions andnormals, and (2n)(3)(4) bytes for connectivity. Thus the illustratedview-dependent progressive-mesh framework only requires a 33% increasein memory over static non-LOD representations.

FIG. 8 shows pseudocode for an instantaneous vertex split (vsplit)transformation. The illustrated transformation modifies prior splitimplementations so that dynamically allocated data structures can beused. (Code for an eco( ) procedure is defined analogously.)

As compared, for example, with U.S. Pat. No. 5,963,209, geometry storageis considerably reduced by modifying the vsplit/ecol transformations toforce vertices v_(s) and v_(t) to have the same geometry, as shown inFIG. 3. This optimization, while optional, results in an averageincrease of 15% in active faces. Additionally, instead of storing thetexture identifiers for the new faces fl and fr, in the Vsplit structure260 (FIG. 7), they are inferred during a vsplit from the adjacent activefaces fn₁ and fn₃ respectively. (See Vsplit 260 discussion above.)

Shown is pseudocode for applying to the selectively refined mesh thevertex split vsplit_(i) that splits a vertex v_(s) into two vertices,v_(t) and v_(u). (See also FIG. 3.) The value of the vertex pointer tov_(t) is obtained by computing the address in the array vertices 264 aby setting v_(t) equal to element no. |V⁰|+2v_(s).i*2, where |V⁰| is thenumber of vertices V⁰ in the base mesh M₀, and v_(s).i is the index (256b) of vsplit_(i) with the vsplits (264 c) array. Thus, at step 300vertex v_(t) gets the vertices of v_(s) as determined by taking thevertices V⁰ of base mesh M⁰ and indexing into the list of splitoperations by i (times 2) steps; at step 302 v_(u) gets the position inthe vertex array of v_(t)+1. (The vertex pointer to v_(u) is simplyv_(t)+1 since the two children v_(t), v_(u) are always placedconsecutively in the array vertices.) Irrespective of whether thehierarchy is stored as an array, linked list, or other construct, splitand collapse operations, and texture values, are tracked by indices.These indices can be also be quantized or compression-encoded tocompactly represent data relationships.

For the new left and right faces f_(l), f_(r), at step 304 (the pointersto faces fl and fr are derived from the index vs.i of the vertex splitthat splits vs, much as above)f_(l) is assigned its value from v_(s),(indexed into the faces 264 b array by v_(s)'s index 256 c value). Dueto how the storage hierarchy is represented in the FIG. 7 datastructures, at step 306 f_(r)'s value is the subsequent array entry.Recall that a selectively refinable mesh is represented as an array ofvertices and an array of triangle faces, where only a subset of thesevertices and faces are active in a current mesh M^(i). The twodoubly-linked lists 264 d-e (FIG. 7) thread through a subset of allvertex and face records. In the Vertex structures, the vsplit index iand parent 256 b pointers allow traversal of the entire vertexhierarchy. When v_(s) can be split, the function vsplit( ) requiresv_(s)'s neighbors f_(n) _(0 . . . 3) (FIG. 3) which are encoded inv_(s)'s associated Vsplit structure 260, and faces f_(l) and f_(r),which are accessed through splitting vertex v_(s)'s vsplit index valuei, which is used to index into the current mesh M^(i)'s faces 264 barray.

So, at step 310 v_(t) acquires v_(s)'s avertex pointer reference, but atstep 310 v_(t) replaces v_(s)'s avertex.vertex back-reference withv_(t)'s back-reference. At this point, v_(s)'s useful data is exhaustedand the v_(s) node is released 312. Alternatively, rather than creatinga new vertex v_(t) and deleting old-vertex v_(s), the contents of v_(s)can just be modified with v_(t)'s new data. For new vertex v_(u), sincev_(u) is not inheriting data from a pre-existing vertex, at step 314v_(u) is initialized as a new node and added to the vertex list-nodetracking list. Finally, at step 316 initialization for the left andright faces is completed.

FIG. 9 shows a top-down view of the forward motion of a viewpoint 370through an active mesh 350. Shown is a view on the model from above,with a first outline indicating the present viewing frustum 354, theprevious viewing frustum 356, and the advancing geomorph refinements 358occurring due to forward movement 352 through the mesh 350. As theviewpoint moves forward through the mesh, the current level of detaileither remains stable or is refined. If the viewpoint were to retreat,mesh data is coarsened.

In a highly visual environment, such as a flight simulator, it iscrucial that the rendered scenes be presented smoothly to a viewer/user,but without mesh popping. At first, these two goals seem contradictory,since the common method for obtaining high frame rates is (1) droppingintermediate frames, resulting in large “steps” from frame to frame, or(2) maintaining screen-space error tolerance at a value of 1 pixel, witha constant error tolerance, resulting in a greatly varying number ofactive faces depending on the model complexity near the viewpoint, and anon-uniform frame rate.

It is preferable that a constant frame-rate be maintained. This can beaccomplished by adjusting the screen-space error tolerance, andeliminating resulting mesh popping by smoothly morphing the geometry(hence the term “geomorphing”) over time. Therefore, even though themodel may (at times) have a projected geometric error of a few pixels,the error is imperceptibly smoothed over a geomorph transition. Inaddition, because geomorphs hide discontinuities in a mesh, pixel errortolerance can be increased to allow higher frame rates (e.g., 72+frames/sec).

As discussed above, view-dependent LOD results in mesh complexitycontrolled by predetermined refinement criteria which indicates the needfor an edge collapse (ecol) or vertex split (vsplit). To reduceunnecessary popping of a mesh rendering, the rate of mesh transformation(e.g. the number of steps, or length of time to perform thetransformation) depends on whether a given portion of an active mesh isentering 360, leaving 362, or staying within 364 the current viewpoint'sviewing frustum 354. For mesh portions staying within the frustum 354,instead of performing instantaneous transformations, they are performedas a geomorph by gradually changing the vertex geometry over severalframes. A transformation is not performed as a geomorph unless theregion of the affected surface is facing the viewer. Note that forheight fields (i.e. terrains or elevation data), facial orientation isnot determined since vertex normals are discarded to reduce memoryrequirements. However, this does not impose a significant penalty sincesurface meshes are viewed essentially horizontally (e.g. one usuallylooks across the breadth of the mesh) there is only a small fraction oftriangles that are completely facing away and unnecessarily rendered. Inaddition, if face orientation were needed, it can be determined fromgeometric analysis of vertex positions in the model-space.

A transformation is also not performed unless the affected region (e.g.,a vertex neighborhood) overlaps the view frustum 354. It is undesirableto initiate a geomorph on a region 362 known to be invisible, becauseaccording to the refinement criteria, such a region may have unboundedscreen-space error. (Both the decision to geomorph and the decision torefine the mesh either use or ignore face orientation.) If such a regionwere to become visible prior to the end of the geomorph, it could leadto an arbitrarily large screen-space displacement. For example, as thefrustum 354 pans left, the nearby off-screen region 366 should not bemorphing from its coarse state as it enters the left edge 368 of theviewport.

Intersection of a vertex's neighborhood with a viewing frustum can bequickly determined if a bounding-sphere (FIGS. 6 and 7 discussion)having a size equaling the extent of the vertex's neighborhood. Thenintersection with the frustum is a simple comparison against thebounding-sphere.

And, although the above discussion focuses on manipulating vertexpositions, it is understood that besides position information, verticescontain other attributes such as a normal, color, texture coordinates,alpha, blend data, etc. Preferably, normals are interpolated over theunit sphere, and other attributes linearly interpolated. Also, texturecoordinates are generated implicitly rather than explicitly duringrendering using a linear map on vertex positions. Each AFace structure268 (FIG. 7) contains a texture_id 268 d identifying the relevanttexture data. Because the map is linear, these texture coordinates areidentical to those that would result if texture coordinates were trackedexplicitly at vertices.

FIG. 10 shows changes to an active mesh 400 resulting from the forwardmovement of the viewpoint 370 (FIG. 9) through a mesh. Here, mesh 400 isobtained by applying three vertex splits to mesh 402. To obtain a smoothtransition between the two mesh states, the geometry for vertices {v₁₃,v₁₁, v₇} are gradually interpolated from those of their ancestors asindicated by the arrows 404, 406, 408. As an optimization to theinterpolation process, as discussed above, one of the vertices in avsplit operation remains at the position of the ancestor vertex. Thus,position v₁₂=v₁ and v₆=v₅, so no interpolation is necessary for thesevertices. Geomorph refinement can use essentially the same Vsplitprocedure and related data structures.

FIG. 11 shows pseudocode for a preferred refinement operation. This codeextends detection and performance of a geomorph refinement using avertex split transformation. An is_invisible( ) function incorporatesthe determination of whether a vertex meets the view-dependent criteriafor rendering. Generally, two basic tests are performed. The first test420 is to determine whether the region of the fully detailed mesh M^(n)affected by the refinement of vertex v_(s) or any of its descendents isoutside the viewing frustum 304 (see bounding-sphere discussion of FIGS.6, 7, and 9), and the second test 422 is whether the vertex is orientedaway from the viewpoint 370. The first test simply requires evaluatingthe position of the vertex (and bounding-sphere, if defined) in themodel's 3D space. But, the second test ordinarily requires evaluatingthe normal vector 254 b (against a cone of normals) for the vertexv_(s). But, some embodiments of the technology may choose to reducestorage requirements by not tracking the normal vector. In thiscircumstance, there are three options. The first is to disregard thetest, and the second is to perform backfacing surface removal, and thethird is to analyze triangle face orientation based upon the position ofvertices to effect hidden surface removal. (Hidden surface removal is amore difficult problem, and if surface removal is required, a backfaceremoval is preferred). For most configurations, the first option ofrendering irrespective of orientation is reasonable if it is likely thata small percentage of faces are invisible. In this circumstance, thetime required to compute an orientation analysis can exceed the timerequired to unnecessarily render them.

Assuming is_invisible( ) returns false, then a modified vsplit( )procedure is called to split a node v_(s). (If “not is_Invisible(v_(s))”evaluates True, then is_Invisible(v_(s)) must evaluate False, i.e.,v_(s) is visible.) After execution of the initialization code 300-316,vertex v_(s) is tested to verify it is presently visible 424. If so, thecoordinates for v_(u) is assigned the values for v_(t). If v_(s) is notvisible (with respect to a viewing perspective and viewing frustum),then the transformation is not performed as a geomorph over time, andinstead the vertex is instantly updated. As with the FIG. 6 refinementoperation, mesh connectivity can still be instantly modified, but herethe new vertex v_(u) is initially assigned the same geometry as itssibling v_(t), rather than directly assigned v_(s)'s values. V_(u)'sgeometry is then gradually modified to the geometry of its eventualrefined state over the next gtime 432 frames.

A new VertexMorph structure 270 (FIG. 7) is created 428 for morphing thevertex. Since this is a refinement operation, structure membercoarsening 270 a is set false, and element gtime 270 b is set 432 to thenumber of frames over which to spread the refinement operation. Theparameter gtime can be user-specified. By default, gtime is equal to theframe rate (e.g., 30-72 frames/sec), so that geomorphs have a lifetimeof one second. Note that the geomorphs do not require the introductionof additional faces, as the mesh connectivity is exactly that of thedesired refined mesh. The issue is not one of adding vertices or faces,but the relocation of vertices and the associated readjustment of facialconnectivity.

The vg_refined 270 c backup copy of the refined geometry is set 434 tothe child vertex geometry for v_(s).i, where i is the vsplit index entryfor vertex v_(s). Vg_refined 270 c represents the ultimate refinedposition for a geomorphing vertex, and is used to determine aninterpolation increment 436 based on the distance between the starting438 and ending 270 c positions of the morphing vertex. This totaldistance is then divided by gtime 270 b to determine how far the vertexis to move in a given frame.

A key feature of the illustrated geomorph refinement is that therefinement operations may overlap; that is, since vertex connectivity isupdated before the geometry is interpolated, a new geomorph process canbe applied to a vertex v_(s) already undergoing morphing. Causing a newrefinement generates two new nodes v_(t) and v_(u), as discussed herein,where one node continues along v_(s)'s original path, and the othercontinues on towards the new refinement position for that vertex. Whenan overlap occurs, the vsplit procedure simply advances the vertex frontdown the vertex hierarchy (possibly several “layers”), and modifies meshconnectivity instantaneously while deferring geometric changes. Sincethe refinements can overlap in time, they can be performed in parallelto achieve significant performance gains.

FIG. 12 shows pseudocode for an update_vmorphs( ) procedure whichupdates the positions of morphing vertices at each frame. At each frame,the set of active vertices (264 d of FIG. 7) is traversed 446, and foreach morphing vertex v_(m) 448, its geometry is advanced 450 and itsgtime 270 b counter decremented 452. When the gtime reaches 0, vertexv_(m) 448 has reached its goal geometry and the VertexMorph record 270is deleted 454. Note, however, the vertex list 264 d need not be asingle list, and that two separate lists can be maintained, one trackingactive non-geomorphing vertices, and the other tracking activelygeomorphing vertices.

Geomorph coarsening operations reverse a series of refinementoperations. As discussed above, when performing a refinement operation,the connectivity of the old and new nodes is updated first, and then thenodes gravitate to their new locations over gtime number of incrementalsteps. When performing the coarsening operation, similar steps can beimplemented to, in effect, reverse a refinement operation.

In the basic case, geomorph coarsening requires that geometryinterpolation take place first, and then mesh connectivity can beupdated to reflect the changed geometry. This contrasts refinementoperations, in which connectivity is updated first (the node is split),and then geometry positions interpolated over gtime. In thisconfiguration, there cannot be multiple overlapping coarseningoperations because the connectivity is not updated until after thecoarsening operation is complete, resulting in an ancestor-verticesproblem. That is, it is impossible to detect whether the secondcoarsening operation is legal, to determine if the proper neighborhoodof faces is present around v_(s) (v_(t) for the moment, since v_(t) willbecome v_(s)) and v_(w) to allow that second edge collapse to occur inthe future. (Note that coarsening difficulties are not inherent to theVDPM framework, and also arise in multi-resolution hierarchies based onuniform subdivision.) To overcome this restriction on overlappinggeomorph coarsening, as discussed above for FIG. 7, the data structurestracking a mesh can be altered to allow for immediate response tocoarsening requests.

For the illustrated embodiments, a geomorph refinement(apply_vsplit(v_(s))) is initiated only when the screen-projecteddeviation of its mesh neighborhood exceeds a pixel tolerance τ. (SeeHoppe, supra, View-Dependent Refinement of Progressive Meshes, at 193.)This prevents wasting processing resources on rendering faces having toolittle effect on output. A problem arises in that the viewer is moving,and the mesh neighborhood is likely to be closer to the viewer by thetime the geomorph completes; this then invalidates the error estimate.This issue can be resolved by anticipating the viewer location gtimeframes into the future, and evaluating the screen-space error metricfrom that future configuration. This future location can be estimated byextrapolation based on the current per-frame viewer velocity. (A morerigorous, and computation intensive, solution is to account for changesin velocity, and altering the lifetimes of ongoing geomorphs asnecessary.)

FIG. 13 shows an adapt_refinement( ) function for traversing the set ofactive vertices at each frame in order to perform refinements andcoarsening transformations. FIG. 11 is the loop that is performed ateach frame to determine whether active vertices should be refined orcoarsened, and whether those refinements or coarsenings should happeninstantly or as geomorphs. For each active vertex v in the activevertices array 264 a (FIG. 7), v_(s) is initialized 470 to point at v'sback-reference to v's static vertex structure 256. The next step is todetermine that vertex v_(s) is not a leaf node of the hierarchy (i.e.,index i<0), that v_(s) is visible, and that screen error is greater thanerror tolerance τ. If these conditions 472 are met, then a vsplit isforced.

If these conditions 472 are not met, then a split is not appropriate andchecks are made 474 to determine whether an edge collapse isappropriate. If vertex v_(s) has a parent and it is legal to perform anedge collapse, then boolean variable vmc is assigned 476 the logical-andresult between active vertex v's current morphing state and whether v isalready undergoing a coarsening operation (i.e. vmc is true if and onlyif the vertex v is currently undergoing geomorph coarsening.) The v'sparent vertex v.parent is then checked 478 for visibility. If the parentis invisible (i.e., rendering rejected based upon selected viewingcriteria), then if vmc is true, v is allowed to immediately finish itsgeomorph coarsening transformation 480 (i.e., its position jumps to itsfinal coarsened state). Otherwise, the parent is visible, its screenerror is checked 482 to determine if it is greater than error toleranceτ. If the parent's error tolerance is more than τ, then there is nopoint to coarsening the mesh, and the geomorph coarsening is cancelled484, thus instantly returning the vertex v to its refined state.Alternatively, if the parent's error tolerance is less than or equal toτ, vmc is true, and if v's morphing gtime 270 b (FIG. 7) equals one 486(e.g., almost done), then the steps of the geomorph are completed 488and vertex connectivity adjusted 490 to reflect the edge collapse thatrequired the vertex position manipulations.

If none of these conditions apply, then the parent is visible 478,screen error is acceptable 482, and vmc is not true 480 (i.e., nocoarsening is being performed). Therefore, a coarsening geomorph isstarted 492. Note, however, that this implementation ofadapt_refinement( ) does not allow overlapping coarsening geomorphs.(But the FIG. 7 data structures can be modified to handle the morecomplex case of overlapping coarsenings.)

One method for determining screen error is to project a mesh onto avirtual screen space. This projection necessarily converts mesh datafrom world space coordinates into screen space coordinates. For aregionalized mesh (see FIG. 14 discussion below), the closest edge of amesh region is inspected to determine whether its impact on the screenexceeds a predetermined tolerance. If not, then it can be concluded thatthe entire region can be skipped. Recall that this process assumes thatregions are rectangular, and therefore there is a nearest edge for agiven viewing perspective. If the nearest edge does not produce asignificant enough result, all further region positions will produce alesser result, and hence the entire region may be avoided. Note thatthere is a special case of when the viewing perspective is within theregion, in which case refinement cannot be conclusively ruled out.

Region-Based PM Construction

FIG. 14 shows the steps for creating a hierarchical region-basedrepresentation of a large-scale terrain mesh. Since simplificationmethods start from a detailed mesh and successively remove vertices,they are inherently memory-intensive. The above discussion has focusedon efficiently storing and manipulating memory structures forefficiently encoding a progressive mesh. Now, we are concerned withgenerating the LOD levels for the progressive mesh hierarchy. Reducingthe fully detailed mesh simplification problem to just processing asingle sub-block greatly reduces computer resource requirements. Forhuge meshes like the one of FIG. 2, such partitioning is not onlyconvenient, but it may be the only practical way to process the entiremesh.

That is, a dynamically structured mesh as disclosed herein can only helpso much in the conservation of computer resources. Even simplifiedmeshes may be too large to fit in main memory (item 30, FIG. 1). If oneresorts to using a virtual memory manager, the resulting pagingoperations may cause the process to pause intermittently, disturbingframe rate. By partitioning the refinement database (i.e., the vsplitoperations) into a block hierarchy, domain knowledge can be exploited toallow explicit pre-fetching of refinement data before it is needed.

Further, just as the geometry data may be too large for memory, so mayits associated texture image. Clip-maps offer an elegant solution tothis problem, but require hardware assistance currently available onlyon high-end systems. A simpler approach is to partition the textureimage into tiles that can be mip-mapped and paged independently. Inillustrated embodiments, a texture tile may be associated with eachblock, as the progressive mesh is constructed, so that mesh faces nevercross block boundaries.

To perform partitioning, a large hierarchical PM surface geometry 550 ispartitioned into many smaller blocks 552, 554, and bottom-up recursionis used to simplify and merge block geometries. The blocks 552, 554 canbe arbitrarily shaped (e.g., an Escher design can be used if desired);however, for clarity herein, it is assumed the regions are rectangular.The term “region” is used to represent the arbitrarily shaped partitionsof the mesh. In defining the regions, no mesh faces are allowed to crosspartition boundaries. This restriction allows the regions to beindependently processed, since all ancestor/descendent vertices willalways be contained within a given region's ancestral tree within the PMhierarchy.

The advantage to breaking a mesh into sub-regions is that that memoryrequirements can be arbitrarily reduced depending on the initial region(e.g., block) size. For computers providing a limited resource forstoring the mesh, small regions can be defined, which as discussedbelow, are recursively coarsened and combined until a final simple meshis obtained.

In addition, as discussed above regarding the creation of theprogressive mesh, the maximum error for a given region of the mesh maybe tracked and associated with the region. Then, duringrendering/display of the progressive mesh, the region's maximum errorcan be compared against a particular screen error tolerance (see FIG. 13discussion above) and current viewer perspective. If the region's impacton the output device does not exceed the screen error tolerance, thenthe vertex splits associated with the refinement of the region at thenext higher level of detail (e.g. FIG. 16, items 594, 596, 602) do notneed to be loaded into memory because it is known that this split datawill not be immediately needed. The vertex front can still be processedwithin the region, and be locally coarsened or refined, but it is knownthat it will not be refined such that it requires vertex split data froma lower hierarchy level.

FIG. 15 illustrates pseudo-code for one method for partitioning anoriginal fully detailed mesh. FIG. 14 illustrates the meshsimplification process at the bottom of the recursion process, butbefore simplification has been begun in a bottom-up fall-back out of therecursion series. FIG. 14 begins after a successful call to the ReachedRecursion Stop State 500 test after call to Partition-Simplify(M4) 504.At this point, before simplification 502 is performed, the originalfully detailed mesh has been completely sub-divided into regions 552,554 (FIG. 14), but simplification has not yet been performed. (This doesnot mean that preliminary simplification 556, 558 can not be performedon a mesh before partitioning it.)

If the Stop State test 500 fails, then we have not reached the “bottom”of the recursion process, and we need to further divide the input mesh.The current input mesh is broken into multiple smaller regions M1, M2,M3, and M4, and the Partition Simplify( ) function is recursively called506, 508 to evaluate each of M1-M4. Note that in amulti-processing/multi-tasking environment, each partition request canbe assigned to a different execution thread.

However, if the Stop State test 500 succeeds, then we are at the bottomof the recursion process, which means that the input region has reacheda predetermined minimal size, or has satisfied some other stop statecondition. The input mesh is then simplified 502, and the simplificationsteps recorded for storage in the progressive mesh hierarchy. Now webegin to fall back out of the recursion process, so that the rest of themesh can be simplified down to the base mesh. (Note that although thisdescription assumes a recursive partition function, it is understoodthat equivalent iterative functions may be used instead.)

After falling back from the function call 508 to partition M4, the nextstep is to re-combine 510 the now-simplified versions of M1-M4 back intothe originally larger region. (If a multi-processing or multi-threadingimplementation is used, one may need to block after processing M4 andwait until M1-M3 are completed.) After re-combining, this larger meshregion is then simplified and the simplification operations recorded forstorage in the refinement list for the progressive mesh hierarchy.

As the system falls out of the recursion process, each row of aprogressive mesh hierarchy will be generated according to the recursionpattern. When the original recursive calls are reached, the originalfour mesh regions are combined and simplified to form M⁰, the base mesh.Since all simplifications were recorded as the system fell out of therecursion process, a fully defined progressive mesh is achieved witharbitrarily minimal memory requirements (e.g. if the stop state is avery small mesh size, then few resources will be required to processit). Note that it is assumed in the pseudo-code that the structuresstoring the input mesh M are replaced with the combination of M1-M4. Onecan also design the functions so that only pointers to the portions of amesh are passed during sub-division, so that all simplifications areperformed in-place.

Continuing now with FIG. 14, the fall back through the recursive schemeproceeds as illustrated in FIG. 14. That is, regions 552, 554 are first(optionally) pre-simplified. This is a special pre-simplification stepfor the first level, in which transformations are discarded for eachinitial block until a user-specified error tolerance is exceeded,resulting in simplified blocks 556, 558. Pre-simplification effectivelyamounts to truncating the final hierarchy, but it allows avoidingintermediate storage costs. Such a pre-simplification step is usefulwhen the complexity of the mesh exceeds what the output resolution of aparticular output device, or perhaps when a low-res rendering of themesh is desired.

For each simplified block 556, 558, a sequence of transformations 560,562 are applied to the blocks, resulting in simpler blocks 564, 566.(Note that the arrow connecting blocks 556, 558 to respective blocks564, 566 represents the coarsening transformations.) As discussed forFIG. 3, the transformation sequence is chosen by selecting, at eachiteration, an edge collapse transformation giving the lowestapproximation error according to the error metric discussed above forFIGS. 4-5. The iterative simplification process then repeats 568processing the resultant simpler blocks 564, 566 until repetition isterminated by a given LOD's approximation error for the next besttransformation exceeding a user-specified threshold for the currentlevel, resulting in final blocks 570, 572. A maximum error can bedefined such that edge collapses are not performed when current error isbelow the defined threshold.

Final blocks are then stitched together into a combined block 574. Notethat the FIG. 14 discussion presumes a 2×1 blocking/stitching pattern,but it is understood a different pattern may be used instead. Thisprocess then repeats 576, where the combined block 574 replacespre-simplified block 566 in this figure, and a second combined blockfrom a parallel operation replaces pre-simplified block 564.

During the simplification process, refinement dependencies betweenadjacent blocks can be avoided by constraining transformations to leaveboundary vertices untouched. Similarly, if texture tiles are desired,transformations can be constrained to prevent displacement of tileboundaries within a block. And as with the first level, specialtreatment is given to the last level of simplification. In the lastlevel, in which there is only a single block 580, simplification of themesh boundary is permitted since inter-block dependencies are nowimmaterial. Thus, the final base mesh consists of only 2 triangles, or 2triangles per tile if texture tiles are used.

FIG. 16 illustrates the hierarchical PM 590 formed from the FIG. 14process. Each recorded edge collapse transformation 560, 562 (FIG. 14)is inverted to form a block refinement sequence, e.g., vsplits S 594,vsplits A 596, and vsplits B 598. These block refinements areconcatenated and stored along with the base mesh M⁰ 592 into a series600. As in the construction of an ordinary PM, this final assemblyinvolves renumbering the vertex and face parameters in all records.However, the renumbering only requires depth-first access to the blockrefinements within the hierarchy, so that memory usage is moderate.Although the hierarchical construction constrains simplification alongblock boundaries at lower levels, inter-block simplification occurs athigher levels, so that these constraints do not pose a significantruntime penalty.

Except for the first row 592 of the hierarchy containing base mesh M⁰,each successive row corresponds to those transformations that arerequired to obtain an i^(th) level of detail of the original fullydetailed mesh M^(n). Each row is organized according to the blocksdefined in the original mesh, hence row contents vsplits A 596corresponds to refining block 564 (FIG. 14) into more refined block 564,and vsplits B 598 for refining block 566 into more refined block 558.

Visually, each successive row groups refinement operations for moredetailed blocks below and within the bounds for the simplifiedcombination of the detailed blocks (e.g., split operations 602, 604 arebelow and within vsplit A 596) So, the second row contains vsplits S594, which contains the final transformation required to transform thelast stitched-together block 574 (FIG. 14) into the most simplified basemesh M⁰. Recall that the large mesh M^(n) is broken into 2^(k)sub-blocks, where after each simplification process, these sub-blocksare 2×2 (or 2×1 in FIG. 14) combined into larger blocks, and thesimplification repeated 576. So, if mesh M^(n) is initially broken into16 sub-blocks, after simplification the blocks are combined into 4larger blocks. After processing these blocks, they are combined into asingle block. Each vsplit 592-608 records the inverse of thesimplification process (e.g. edge collapses), and records how tore-obtain the more complex mesh form.

As mentioned above, a user specified threshold determines the maximumapproximation error at each simplification level. These thresholds canbe chosen so that block refinements at all levels have roughly the samenumber of refinements. Since the thresholds form an upper-bound on theerrors of all transformation below that level, they can be used todetermine which block refinements need to be memory-resident based onthe current viewing parameters, and which others should be pre-fetchedbased on the anticipated view changes. Specifically, we can use thethresholds to compute the maximum screen-projected error for each activeblock. Thus, if the error exceeds the screen-space tolerance, its childblock refinements are loaded into memory and further tested.

And, since block refinements correspond to contiguous sequences in thevertices, faces, and vsplits data structures (FIG. 7), we can reservevirtual memory for the whole PM (i.e., the entire arrays), and usesparse memory allocation to commit only a fraction to physical memory.For example, the Microsoft Windows operating system supports such areserve/commit/decommit protocol using the VirtualAlloc( ) andVirtualFree( ) system calls. (See generally Microsoft Win32 Programmer'sReference, vol. 2, chap. 42, Microsoft Press (1993).)

The technology teaches avoiding inefficiencies inherent to prior artprogressive mesh rendering systems. In particular, discussion hasfocused on relieving computation requirements by breaking down complexmeshes into multiple smaller regions, thereby reducing a potentiallyintractable problem into manageable portions. Having described andillustrated the principles of our invention with reference to anillustrated embodiment, it will be recognized that the illustratedembodiment can be modified in arrangement and detail without departingfrom such principles. The programs, processes, or methods describedherein are not related or limited to any particular type of computerapparatus, unless indicated otherwise. Various types of general purposeor specialized computer apparatus may be used with or perform operationsin accordance with the teachings described herein. Elements of theillustrated embodiment shown in software may be implemented in hardwareand vice versa, and it should be recognized that the detailedembodiments are illustrative only and should not be taken as limitingthe scope of our invention. What is claimed as the invention are allsuch embodiments as may come within the scope and spirit of thefollowing claims and equivalents thereto.

1. A computer system for generating a representation having ahierarchical region-based organization for a mesh, such system receivingan input mesh, the system comprising: means for sub-dividing the inputmesh into plural sub-regions; means for identifying a plurality ofoperations per sub-region simplifying the sub-regions; and means forstoring, in memory associated with the computer system, in therepresentation having a hierarchical region-based organization, dataindicating a plurality of refinement operations derived from theplurality of operations per sub-region simplifying the sub-regions,wherein the storing comprises grouping the data indicating the pluralityof refinement operations according to the sub-region within the inputmesh whereat the refinement operations operate.
 2. The system of claim1, in which the input mesh is initially broken into pluralarbitrarily-shaped regions, and processing is separately performed oneach such arbitrarily-shaped region.
 3. The system of claim 1, whereinthe input mesh is initially simplified into a simplified mesh having apredetermined quality level, and the simplified mesh is furthersimplified.
 4. The system of claim 1, further comprising: means forcombining the plural sub-regions into a single region; and means forsimplifying the single region.
 5. The system of claim 1, in which anencoding of the mesh includes plural vertices interconnected by pluraledges, and the identifying comprises simplification of the mesh viaperforming an edge collapse operation on an edge joining a first and asecond vertex, wherein simplification is effected by an in-place updateof the encoding.
 6. The system of claim 1, further comprising: means fortesting for a stop state; and means for repeatedly performing thesub-dividing until the stop state is met; wherein testing for the stopstate includes detecting a mesh shape.
 7. The system of claim 1, furthercomprising: means for testing for a stop state; and means for repeatedlyperforming the sub-dividing until the stop state is met; wherein testingfor the stop state comprises detecting a size of at least one of thesub-regions, where size is determined at least in part by a number ofvertices.
 8. The system of claim 1, further comprising: means fortesting for a stop state; and means for repeatedly performing thesub-dividing until the stop state is true; wherein the stop state istrue when at least one of the sub-regions has a level of detail below apredetermined threshold.
 9. The system of claim 1 wherein therepresentation represents a plurality of levels of detail; and the dataindicating the operations is further grouped according to a level ofdetail generated by the operations.
 10. The system of claim 1 whereinthe operations are edge collapses; and the data indicating theoperations comprises information indicating vertex splits, wherein thevertex splits are inverses of the edge collapses.
 11. One or morecomputer-readable media having a stored computer program for performinga method for generating a representation for a recursion input mesh,such method receiving a fully detailed mesh as an initial input, themethod comprising: testing for a recursion stop state, such state beingtrue or false, and wherein the stop state is determined at least in partby the size of the memory required to store the recursion input mesh; ifthe state is true, then simplifying an input mesh of a current recursionof the method and falling back in the recursion; if the state is false,then sub-dividing the recursion input mesh into plural sub-regions, andrecursing on each of the plural sub-regions; and storing the recursioninput mesh in a computer memory having a size; wherein a plurality ofmesh operations operate within at least one of the sub-regions.
 12. Thecomputer-readable media of claim 11, in which a host computing systemhaving a memory and a corresponding memory page size is used toimplement the method, and wherein the stop state is true when the memoryrequired to store the recursion input mesh is less than or equal to suchpage size.
 13. A computer system comprising: means for identifying aplurality of operations that, when applied to a simplified mesh,generate a more refined version of the simplified mesh; means fororganizing representations of the operations into groups of pluraloperations according to within which region out of a plurality ofregions of the simplified mesh the operations refine the mesh; and meansfor storing the representations of the operations into memory associatedwith the computer system; wherein at least two of the plurality ofregions have a plurality of operations associated therewith.
 14. Thesystem of claim 13 wherein the organizing further organizes therepresentations of the operations into groups based on a level of detailgenerated by the groups.
 15. The system of claim 13 further comprising:means for generating a simplified base mesh; means for storing thesimplified base mesh in a data structure; and means for storing therepresentations of the operations in the data structure according to ahierarchical region-based organization.
 16. One or morecomputer-readable media having a stored computer program for performinga method of generating a progressive mesh representation having ahierarchical region-based organization based on a mesh, the methodcomprising: for a plurality of sub-regions of the mesh at a level ofdetail: identifying a plurality of operations for regenerating thesub-regions from simplified versions of the sub-regions; and storing,within computer memory, as a group by sub-region, representationsindicating the plurality of operations for regenerating the sub-regionsfrom the simplified versions in the representation at a hierarchicallevel related to the level of detail for the sub-regions.
 17. Thecomputer-readable media of claim 16 wherein: the operations are edgecollapses; and the representations indicating the operations representvertex splits, wherein the vertex splits are inverses of the edgecollapses.
 18. One or more computer-readable media having a storedcomputer program for performing a method of generating a meshrepresentation having a hierarchical region-based organization based ona mesh, the method comprising: repeatedly subdividing the mesh intoplural sub-regions until a stop state is met for at least a plurality ofthe sub-regions; then simplifying the plurality of the sub-regions ofthe mesh; combining a plurality of the simplified sub-regions into acomposite simplified mesh; and storing the composite simplified mesh inthe mesh representation within a computer memory, the computer memoryhaving a size; wherein a plurality of mesh operations operate within atleast one of the sub-regions.
 19. The computer-readable media of claim18 wherein the method further comprises: simplifying the compositesimplified mesh.